package com.greenant.store.bean;

import com.avos.avoscloud.AVACL;
import com.avos.avoscloud.AVClassName;

@AVClassName(AntAVObject.CLASS_EVALUATE)
public class Evaluate extends AntAVObject {
		
	public static final String ATTR_USRID ="userId";

	public static final String ATTR_COMMENT="comment";
	


	public Evaluate() {
		super();			
		setAccessCtrl();
	}
	
	public Evaluate(String str) {
		super(str);
		setAccessCtrl();		
	}

	public Evaluate getInstance()
	{
		return this;
	}
	public String getUserId() {
		return this.getString(ATTR_USRID);
	}

	public void setUserId(String userId) {
		this.put(ATTR_USRID,userId);
	}
	
	public String getComment() {
        return this.getString(ATTR_COMMENT);
    }

    public void setComment(String userId) {
        this.put(ATTR_COMMENT,userId);
    }
	
	private int setAccessCtrl() {
		
		acl = new AVACL();
		acl.setPublicReadAccess(true);//�˴����õ��������˵Ŀɶ�Ȩ��
		acl.setPublicWriteAccess(true);
		this.setACL(acl);

		return 0;
	}


	
}
